home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-19
/
1-bc-cad.zip
/
MRIN.LSP
< prev
next >
Wrap
Text File
|
1992-05-11
|
602b
|
22 lines
;THIS FILE WILL MIRROR OBJECTS BY THEIR INSERTION POINTS
(defun c:mrin ()
(command)
(setq D1 (getdist "\nGIVE A REAL DISTANCE: "))
(command)
(setq A1 (getangle "\nWHAT DIRECTION? "))
(command)
(initget 1 "Yes No")
(setq Y/N (getkword "\nDELETE OLD OBJECT? "))
(command)
(prompt "\nSelect objects for the loop, ")
(setq ssloop (ssget))
(setq i 0)
(while (setq obj (ssname ssloop (- (setq i (1+ i)) 1)))
(setq inspt (cdr (assoc '10 (entget obj))))
(command)
(setq P2 (polar INSPT A1 D1))
(command "MIRROR" OBJ "" INSPT P2 Y/N)
)
(prin1)
)